﻿using Furion.DynamicApiController;
using HOPU.OnlineSchool.Application.Files.Dtos;
using HOPU.OnlineSchool.Application.Files.Services;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HOPU.OnlineSchool.Application.Files
{
  public  class FileAppService: IDynamicApiController
    {
        private readonly IFileService _fileService;

        public FileAppService(IFileService fileService)
        {
            _fileService = fileService;
        }
        public OssUploadOutput Upload(IFormFile file,[FromQuery]string host) {
          return  _fileService.Upload(file, host);
        }
    }
}
